<template>
  <el-form ref="form" class="login-ruleForm">
    <el-form-item prop="name">
      <el-input>
        <template #prefix>
          <UserFilled />
        </template>
      </el-input>
    </el-form-item>
    <el-form-item>
      <div class="form-code">
        <el-input>
          <template #prefix>
            <UserFilled />
          </template>
        </el-input>
        <el-button type="primary" class="code-btn">获取验证码</el-button>
      </div>
    </el-form-item>
    <el-form-item prop="password">
      <el-input type="password">
        <template #prefix>
          <Lock />
        </template>
      </el-input>
    </el-form-item>
    <el-form-item prop="password">
      <el-input type="password">
        <template #prefix>
          <Lock />
        </template>
      </el-input>
    </el-form-item>
    <el-form-item>
      <div class="login-check">
        <el-checkbox>同意XXX协议</el-checkbox>
      </div>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" class="login-btn" round>注 册</el-button>
    </el-form-item>
  </el-form>
</template>

<script setup>
import { reactive, toRefs } from "vue";
</script>

<style scoped>
.login-ruleForm {
  margin-top: 1rem;
}

.login-ruleForm :deep(.el-input__prefix) {
  top: 2px;
  padding: 0 4px;
}

.login-ruleForm .login-methods {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.login-ruleForm .login-btn {
  width: 100%;
  margin-bottom: 1rem;
}

.login-ruleForm .login-check {
  display: flex;
  align-content: center;
  justify-content: space-between;
}

.login-ruleForm .form-code {
  display: flex;
  align-content: center;
  justify-content: space-between;
}

.login-ruleForm .form-code .code-btn {
  margin-left: 1rem;
}
</style>
